package com.example.teamtribe.main.club.posting;

import com.example.teamtribe.base.BaseView;
import com.example.teamtribe.database.Posting;
import com.example.teamtribe.database.User;

import java.util.List;

public interface PostingContract {

    interface View extends BaseView {

        void setUser(User user);
        void setHead();
        void setImage(List<String> images);
        void setImage();
        void addComment(Posting comment);
        void addComment(List<Posting> comments);
        void setCommentUser();
        void setCommentHead();
        void complete();
        void clearText();
        void next(int resultCode);
    }

    interface Presenter {

        void start(int postId, List<String> images);
        void getUser(int mode, int postId);
        void getImages(List<String> images);
        void getComments(int postId, int offset);
        void comment(int teamId, String content, int postId);
        void delete(int postId);
    }
}
